/*
 * Created by SharpDevelop.
 */
using System;
using System.Drawing;
using System.Windows.Forms;

namespace MiniMIPS
{
	/// <summary>
	/// Description of AboutForm.
	/// </summary>
	public partial class AboutForm : Form
	{
		public AboutForm()
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			
			//
			// TODO: Add constructor code after the InitializeComponent() call.
			//
			Version ver = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
			DateTime buildDate = new DateTime(2000,1,1).AddDays(ver.Build);
			lblTitle.Text = lblTitle.Text + " " + ver.Major + "." + ver.Minor;
			lbDetails.Items.Add("Created by Michael Hamer and James Lumsden");
			lbDetails.Items.Add("Build Date: " + buildDate.ToShortDateString());
			lbDetails.Items.Add("Electrical and Computer Engineering Department");
			lbDetails.Items.Add("Curtin University of Technology");
			lbDetails.Items.Add("Contact Email: c.ortega@curtin.edu.au");                    
		}
		
		void LinkProjectLinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			string url = "http://code.google.com/p/minimips-sim/";
			System.Diagnostics.Process.Start(url);
		}
	}
}
